.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.6rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 6px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo a:hover::after {
    transform: scaleX(1);
}

.main-nav {
    margin-left: auto;
    margin-right: 3rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 2px;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 1.5px;
    height: 9px;
    background: rgba(255, 255, 255, 0.8);
    bottom: -7px;
    right: -7px;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
}

.login-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.login-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.login-btn:hover::before {
    left: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled header style */
.main-header.scrolled {
    background: rgba(28, 28, 28, 0.85);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
        height: 80px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(28, 28, 28, 0.9);
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
    }

    .main-nav.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0 2rem;
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
} 